<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
  <%
     String username = request.getParameter("username");
     String password = request.getParameter("password"); if(username.equals("admin")&&password.equals("admin")) 
           {
               out.print("<h3>欢迎你,"+username+"访问该页面！</h3>");
              }
   else{
         out.println("你还没有登录！<br>");
          out.println("<a href='chap02/login.html'>登录</a>");
   }
%> 
</body>
</html>